package com.javaoopfour.util;

public class StrUtil {

    //字符串数组和int类型数组转换。
    public static int[] strArrayToInt(String[] strings){
        int[] ints = new int[strings.length];
        int j=0;
        for (int i = 0; i < strings.length; i++) {
           if(strings[i] !=""){
               ints[j]=Integer.parseInt(strings[i]);
               j++;
           }
        }
        return ints;
    }

    //JSON转java对象


}
